All About PHP sessions
Here you can find information about PHP Sessions. Enjoy!
What are They?
A session is a way to store information (in variables) to be used across multiple pages. Unlike a cookie, the information is not stored on the user’s computer.
Why/when it is appropriate to use
It allows the website to remember a user and their information across multiple web pages. Web servers do not remember who you are by default. PHP sessions change that by using session variables that store user information to be used across several pages. By default, session variables last until the user closes the browser.
Security considerations
Sessions hold individual data for each user that can cause considerable performance and security issues if mishandled or misused. Improper session management can lead to a wide variety of attacks, including session hijacking and session fixation.
Links to resources demonstrating/explaining use
Krossing, Dani. "44: (UPDATED VIDEO IN DESC) How To Create A Login System In PHP For Beginners | PHP Tutorial" YouTube, uploaded by Dani Krossing, Aug 31, 2019, https://www.youtube.com/watch?v=LC9GaXkdxF8 Accessed 11/9/2020.